﻿<navigation:Page 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="ZJUDTS.Register"
           mc:Ignorable="d"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Register Page">
    <StackPanel x:Name="LayoutRoot">
        <!-- 标题栏 -->
        <TextBlock Text="用户注册" Style="{StaticResource HeaderTextStyle}" />
        <Grid x:Name="RegisterGrid" Height="194">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
                <RowDefinition Height="83*"/>
                <RowDefinition Height="2*"/>
            </Grid.RowDefinitions>

            <TextBlock Margin="3,4,0,4" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Text="用户名：" Style="{StaticResource DefaultLabelTextStyle}" />
            <TextBox x:Name="UserName"  Margin="3,0,3,0" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Stretch" Style="{StaticResource DefaultInputTextStyle}" />

            <TextBlock Margin="3,44,0,106" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Text="密码：" Style="{StaticResource DefaultLabelTextStyle}" RenderTransformOrigin="0.663,1.654" Grid.RowSpan="2" />
            <PasswordBox x:Name="Password" Margin="3,40,3,102" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" Style="{StaticResource DefaultPassowrdStyle}" Grid.RowSpan="2" />

            <TextBlock Margin="3,104,0,46" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Text="密码确认：" Style="{StaticResource DefaultLabelTextStyle}" RenderTransformOrigin="0.663,1.654" />
            <PasswordBox x:Name="Confirm" Margin="3,100,3,42" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Stretch" Style="{StaticResource DefaultPassowrdStyle}" />

            <TextBlock Margin="3,164,0,-10" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Text="邮箱：" Style="{StaticResource DefaultLabelTextStyle}" Grid.RowSpan="2" />
            <TextBox x:Name="Email" Margin="3,160,3,-14" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Stretch" Style="{StaticResource DefaultInputTextStyle}" Grid.RowSpan="2" />


        </Grid>

        <!-- 分割线 -->
        <Line Margin="10" Height="3" Stroke="Gray" Fill="Gray" />

        <!-- 操作面板 -->
        <StackPanel x:Name="ActionPanel" Orientation="Horizontal" Height="67">
            <Button x:Name="Register1" Width="75" Content="注册" HorizontalAlignment="Center" Margin="40,30,0,0" Click="Button_Click_1"/>
            <Button Content="重置" Width="75" Margin="80,30,0,0"/>
        </StackPanel>
        <sdk:DataGrid x:Name="DataGrid" Height="100" Margin="63,0,79,0" />


    </StackPanel>
</navigation:Page>
